package top.lilele.adminSystem.service;

import org.springframework.stereotype.Service;
import top.lilele.adminSystem.entity.AdminProjectHistoryEntity;
import top.lilele.adminSystem.mapper.AdminProjectHistoryMapper;

import javax.annotation.Resource;

/**
 * @author lilele
 */
@Service
public class AdminProjectHistoryService {

    @Resource
    AdminProjectHistoryMapper adminProjectHistoryMapper;

    /**
     * 新增项目记录
     *
     * @param projectId   项目id
     * @param description 描述
     * @param userId 创建人id
     */
    public void add(String projectId, String description,String userId) {
        AdminProjectHistoryEntity his = new AdminProjectHistoryEntity();
        his.setProjectId(projectId);
        his.setCreatedId(userId);
        his.setDescription(description);
        adminProjectHistoryMapper.insert(his);
    }

}
